﻿using PoliticalClassifier.Support;

namespace PoliticalClassifier.DataSource
{
    /// <summary>
    /// An internal error class representing a "bad file format" error.
    /// </summary>
    internal class DataSourceBadFileFormatError : DataSourceErrorBase
    {
        #region Construction
        /// <summary>
        /// Constructs a default "bad file format" error.
        /// </summary>
        public DataSourceBadFileFormatError() 
            : base(DataSourceLoadErrorType.BadFileFormat)
        {
        }
        #endregion

        #region Public Methods
        /// <summary>
        /// Gets a human readable error message.
        /// </summary>
        /// <returns>A human readable error message.</returns>
        public override string GetErrorMessage()
        {
            return Resources.BadFileFormatErrorMessage;
        }
        #endregion
    }
}
